package com.firegod.commonutils.result;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 响应码枚举
 *
 * @author liusCoding
 */
@AllArgsConstructor
@Getter
public enum ResultCode implements IResultCode {

    SUCCESS(20000, "操作成功"),

    ERROR(20001, "响应失败"),

    UPLOAD_FILE_ERROR(20010, "文件上传失败"),

    FILE_EMPTY(20011, "文件为空"),

    DELETE_ERROR(20012, "删除失败"),

    VALID_CODE_SEND_FAIL(20013, "短信验证码发送失败"),

    LOGIN_ERROR(20014, "登录失败，用户名或密码错误！"),

    REGISTER_ERROR(20015, "注册失败"),

    GET_PLAYAUTH_FAIL(20016, "获取视频凭证失败"),

    REMOTE_CALL_COURSE(20017, "远程调用查询课程信息失败"),

    REMOTE_CALL_MEMBER(20018, "远程调用会员模块失败"),

    WXPAY_FAIL(20019, "微信支付失败"),

    PARAMS_ERROR(20020, "参数校验失败"),
    NO_STUDENT_ID_ERROR(20021, "请输入学号！"),
    NO_PASSWORD_ERROR(20022, "请输入密码！"),
    REDUPLICATE_STUDENT_ID_ERROR(20023, "该学号已被注册！"),
    PASSWORD_ERROR(20024, "密码错误！"),
    NO_TEACHER_ID_ERROR(20025, "请输入工号！"),
    REDUPLICATE_TEACHER_ID_ERROR(20026, "该工号已被注册！"),
    IN_LIVE_ERROR(20027, "您已经加入其它直播，请先退出！"),
    NO_TITLE(20028, "请输入标题！"),
    NOT_TEACHER(20029, "只有老师才能创建课程！"),
    COURSE_NOT_EXIST(20030, "课程不存在！"),
    STUDENT_NOT_EXIST(20031, "学生不存在！"),
    TEACHER_NOT_EXIST(20032, "教师不存在！"),
    ID_IS_TEACHER(20033, "存在老师！"),
    USER_NOT_EXIST(20034, "用户不存在！"),
    GROUP_ID_NOT_EXIST(20035, "圈子id为空"),
    NO_COURSE_ID(20036, "课程id为空"),
    COMMENT_NOT_EXIST(20037, "评论不存在"),
    NO_COMMENT_ID(20038, "评论id为空"),
    TOPIC_NOT_EXIST(20039, "帖子不存在");

    private final Integer code;

    private final String msg;
}
